import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitData = itf({
    payload: itf({
        workItemCategoryTypes: [itf({
            id: 'string',
            name: 'string',
            level: 'number',
            isLeaf: 'boolean? | null'
        })],
    })
});

export const WorkItems = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })],
        totalElements: 'number'
    })
});

export const WorkItemDetail = itf({
    payload: itf({
        id: 'string',
        code: 'string',
        name: 'string',
    })
});

export const Categories = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })]
    })
});

export const Part = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            code: 'string',
            name: 'string',
        })]
    })
});
